package com.hui.security.sys.mapper;

import com.hui.security.sys.entity.Group;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface GroupMapper {
    int deleteByPrimaryKey(String groupId);

    int insert(Group record);

    int insertSelective(Group record);

    Group selectByPrimaryKey(String groupId);

    int updateByPrimaryKeySelective(Group record);

    int updateByPrimaryKey(Group record);

    int batchInsert(@Param("recordList") List<Group> recordList);

    int batchDelete(@Param("ids") String[] ids);

    int batchUpdate(@Param("recordList") List<Group> recordList);

    List<Group> selectByUserId(@Param("userId") String userId);

    Group selectByGroupName(@Param("groupName") String groupName);
}